<?php
/**
 * Created by PhpStorm.
 * User: Dmitry
 * Date: 28.02.2015
 * Time: 5:40
 */

class ProductsProvider {

    public function getProducts()
    {
        $db = Context::DB();
        if($db->connectDatabase())
            print_r($db->query("SELECT * FROM Products"));
    }

    public function getContacts()
    {
        $db = Context::DB();
        if($db->connectDatabase())
            print_r($db->query("SELECT * FROM Contacts"));
    }
    public function getMainText()
    {
        $db = Context::DB();
        if($db->connectDatabase())
            print_r($db->query("SELECT * FROM MainText"));
    }
    public function  getTelephone()
    {
        $db = Context::DB();
        if($db->connectDatabase())
            print_r($db->query("SELECT * FROM OtherInfo"));
    }



}